#ifndef __IPC_RADAR_PROTOCOL_INCLUDE__
#define __IPC_RADAR_PROTOCOL_INCLUDE__

#define RadarIPCCOM_LEAD_MESSAGE_ID (1)
#define RadarIPCCOM_CALIBRATION_MESSAGE_ID	(2)
#define RadarIPCCOM_ALARM_MESSAGE_ID	(3)

#define RadarIPCCOM_PTZ_REPORT_ID	(1)
#define RadarIPCCOM_FOV_REPORT_ID	(2)

#include <QDateTime>

typedef struct RadarIPCCOMAlarmCMD {
	QString UID;
	QString UserID;
	QString RegionName;
	QString RadarID;
	int RadarChannel;
	int TrackID;
	int RegionAlarmType;
	double CurrentLon;
	double CurrentLat;
	double SOG;
	double COG;
	QDateTime ServerTimestamp;
	QDateTime LocalTimestamp;
	int		RegionType;
}RadarIPCCOMAlarmCMD_t;

typedef struct RadarIPCCOM_Protocol {
	int MessageID;
	QString IPCUID;
	double RadarTargetLon;
	double RadarTargetLat;
	double RadarTargetAlt;
	RadarIPCCOMAlarmCMD_t	RadarIPCCOMAlarmCMDParm;
}RadarIPCCOM_Protocol_t;

Q_DECLARE_METATYPE(RadarIPCCOMAlarmCMD_t)
Q_DECLARE_METATYPE(RadarIPCCOM_Protocol_t)

#endif